From: Keir Fraser Date: Sat, 27 Jun 2009 09:37:51 +0000 (+0100) Subject: docs: Add network_setup.txt file explaining bridge setup. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13677^2~3 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=babdd633959ee85a37075bc850ca0b9ed039944c;p=xen.git docs: Add network_setup.txt file explaining bridge setup. Signed-off-by: Daniel P. Berrange --- diff --git a/docs/misc/network_setup.txt b/docs/misc/network_setup.txt new file mode 100644 index 0000000000..4d9349d898 --- /dev/null +++ b/docs/misc/network_setup.txt @@ -0,0 +1,195 @@ +Native OS bridge configuration +============================== + +The traditional "network-bridge" script attempts to modify existing active +network interfaces to enable bridging. For non-trivial network configurations +though this can be error prone, and the temporary disruption to network +connectivity can upset some applications. This document outlines how to +configure bridging using an OS' native network configuration files. + +Disabling Xen's network scripts +------------------------------- + +The first step is to check XenD's network bridge is disabled by +editing /etc/xen/xend-config.sxp and changing the line + + (network-script network-bridge) + +To be + + (network-script /bin/true) + + +Fedora/RHEL Bridging +==================== + +This outlines how to setup bridging using standard network initscripts +present in Fedora or RHEL distros and their derivatives + + +Disabling NetworkManager +------------------------ + +As of time of writing (Fedora 11) NetworkManager does not support bridging, +so it is neccessary to disable it, and revert to "classic" network initscripts + + # chkconfig NetworkManager off + # chkconfig network on + # service NetworkManager stop + # service network start + +NB, as an alternative to turning off NetworkManager, you can also add a line +"NM_CONTROLLED=no" to the ifcfg-XXX scripts below + +Creating network initscripts +---------------------------- + +In the /etc/sysconfig/network-scripts directory it is necccessary to create +2 config files. The first (ifcfg-eth0) defines your physical network interface, +and says that it will be part of a bridge: + +# cat > ifcfg-eth0 < ifcfg-br0 < /etc/sysconfig/iptables-forward-bridged +# lokkit --custom-rules=ipv4:filter:/etc/sysconfig/iptables-forward-bridged +# service libvirtd reload + +Alternatively, you can prevent bridged traffic getting pushed through +the host's iptables rules completely. In /etc/sysctl.conf add + + # cat >> /etc/sysctl.conf <